﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BGM_Project_Information.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form.BGM_Project_Information" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
        }
        .style3
        {
            width: 88px;
            height: 41px;
        }
        .style4
        {
            height: 41px;
        }
    </style>
</head>
<body>
    <LINK REL="StyleSheet" HREF="../../Styles/StyleSheet.css" TYPE="text/css">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <table style="width:100%;">
        <tr>
            <td class="style3" align="right" width="88px">
                กรองข้อมูล :</td>
            <td colspan="2" align="left" class="style4">
                <asp:TextBox ID="TextBox1" runat="server" Width="235px"></asp:TextBox>
&nbsp;
                <asp:Button ID="Button1" runat="server" Text="..." Width="35px" />
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="3" width="88px">
                <asp:Panel ID="Panel1" runat="server" Width="493px">
                    <asp:Label ID="Label1" runat="server" Text="จัดการกลุ่มข้อมูล : "></asp:Label>
                    &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" 
                        Checked="True" GroupName="rdg1" oncheckedchanged="RadioButton1_CheckedChanged" 
                        Text="ตามยุทธศาสตร์" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" 
                        GroupName="rdg1" oncheckedchanged="RadioButton2_CheckedChanged" 
                        Text="ตามหน่วยงาน" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style1" colspan="3">
                <asp:Panel ID="panelGrid" runat="server" Height="600px" ScrollBars="Auto" 
                    Visible="true">
                    <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="Grid" runat="server" 
                        AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                        AutoGenerateColumns="False" EnableAJAX="True"
                        GridLines="None" PageSize="4">
                        <MasterTableView AllowMultiColumnSorting="true" GroupLoadMode="Client"
                            Width="100%">
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" ItemStyle-Width="30px"
                                 HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="Code" 
                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                    HeaderText="รหัส" ItemStyle-Width="70px" ShowFilterIcon="false" ItemStyle-HorizontalAlign="Center"
                                    UniqueName="Code">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="งาน/โครงการ" FilterControlWidth="100%" 
                                    HeaderStyle-HorizontalAlign="Center" Visible="false"
                                    ShowFilterIcon="false">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridTemplateColumn>                                
                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="ProName" FilterControlWidth="100%" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderText="งาน/โครงการ" 
                                    ShowFilterIcon="false" ItemStyle-Width="300px" UniqueName="Name">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="targetControl" runat="server" CommandName="TargetClick"
                                            Text='<%# Eval("ProName") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="Strategy" 
                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                    HeaderText="ยุทธศาสตร์" ShowFilterIcon="false" UniqueName="Description">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="JobSite" 
                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                    HeaderText="หน่วยงาน" ShowFilterIcon="false" 
                                    UniqueName="StrategyType.Name">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn 
                                    AutoPostBackOnFilter="True" DataField = "Responsible" 
                                    CurrentFilterFunction="Contains" 
                                    HeaderText="ผู้รับผิดชอบ" ShowFilterIcon="False" 
                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                    UniqueName="Responsible">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="True" 
                                    CurrentFilterFunction="Contains" DataField = "Budget"
                                    HeaderText="วงเงิน (บาท)" 
                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                    ShowFilterIcon="False" UniqueName="Budget">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true" >
                            <Selecting AllowRowSelect="True" />
                            <ClientEvents  />
                        </ClientSettings>
                    </telerik:RadGrid>
                    
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    
    </form>
</body>
</html>
